Repository navigation
fix(windows): settings cards set Content only when there is one - #4693
Merged
Merged
Conversation
…as the AOT build's nullable check asks
…loop reads the list by pattern, as CA1859 and CA1826 ask
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
AccountKeysView.xaml.cs(441,70),TeamKeysView.xaml.cs(188,23)and(370,70).SettingsCard.DescriptionandSettingsExpander.Contenttake a non-null object, so each card sets its description and content only when it has one, instead of assigning null.ApproveAsyncandResetAsyncreturnTask<KeyDialogResult>(CA1859), and the conflict loop readslibrary.Conflicts is [var conflict, ..](CA1826).WMC0909errors forlocal:EngineGroupandlocal:EngineChoiceinConnectionFormWindow.xamlfollowed from the failed C# pass and are gone once it compiles.Test plan
tp-winVM (real Windows, Arm64): main 1d3292c with this PR's three files buildsTablePro.Appin Debug win-arm64 with 0 warnings and 0 errors.dotnet publish -c Release -r win-arm64 -p:Platform=ARM64 -p:CargoProfile=dev, exits 0 with no WMC0909 and no AOT warnings.